using UnityEngine;
using System.Collections;

public class SafeDelete : MonoBehaviour {

    public float delayTime = 5;

	// Use this for initialization
	void Start ()
	{
	    StartCoroutine(WaitDelete());
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    private IEnumerator WaitDelete()
    {
        yield return new WaitForSeconds(delayTime);
        Destroy(this.gameObject);
    }
}
